package com.h5;

import com.vsd.mobile.error.MEnumError;

public class Ret {

	private int code;
	
	private Object data;
	
	public Ret(){
		
	}
	
	public Ret(int code){
		this.code = code;
	}
	
	public Ret(int code, Object data){
		this.code = code;
		this.data = data;
	}
	
	public Ret(MEnumError error){
		this.code = error.getErrorCode();
		this.data = error.getErrorMsg();
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
	
}
